
 /**    
 * 文件名：RimCoreRoleLinkPK.java    
 *    
 * 版本信息：    
 * 日期：2010-11-16    
 * Copyright 足下 Corporation 2010     
 * 版权所有    
 *    
 */
 
package com.sunwayhorizo.health.hl7.persistent.pk;

import java.io.Serializable;


 
/**   
 * @Title: RimCoreRoleLinkPK.java
 * @Package com.sunwayhorizo.health.hl7.persistent.pk
 * @Description: RimCoreRoleLink复合主键
 * @version V1.0
 * @firstAuthor jinzw
 * @firstTime   2010-11-16 下午04:14:37
 * @lastAuthor  jinzw
 * @lastTime    2010-11-16 下午04:14:37 
 * @updComment  
 */

public class RimCoreRoleLinkPK implements Serializable{
	    public Long roleLinkId;
//	    public Long sourceRoleVerNum;
//	    public Long targetRoleVerNum;

	    public RimCoreRoleLinkPK() {
	    }

	    public RimCoreRoleLinkPK(Long roleLinkId, Long sourceRoleVerNum, 
	                          Long targetRoleVerNum) {
	        this.roleLinkId = roleLinkId;
//	        this.sourceRoleVerNum = sourceRoleVerNum;
//	        this.targetRoleVerNum = targetRoleVerNum;
	    }

	    public boolean equals(Object other) {
	        if (other instanceof RimCoreRoleLinkPK) {
	            final RimCoreRoleLinkPK otherRoleLinkPK = (RimCoreRoleLinkPK)other;
	            final boolean areEqual = 
	                (       otherRoleLinkPK.roleLinkId.equals(roleLinkId) 
//	                        && 
//	                		otherRoleLinkPK.sourceRoleVerNum.equals(sourceRoleVerNum) && 
//	                		otherRoleLinkPK.targetRoleVerNum.equals(targetRoleVerNum)
	                		);
	            return areEqual;
	        }
	        return false;
	    }

	    public int hashCode() {
	        return super.hashCode();
	    }
}
